package com.gz.moreaseManager.core.exception;


/**
 * @文件名: BizExceptionEnum
 * @版权:Copyright 2018-2020版权所有：ganz
 * @描述: 业务异常的枚举
 * @修改人: ganzheng
 * @修改时间: 14:51
 * @修改内容:新增
 */
public enum BizExceptionEnum implements AbstractBaseExceptionEnum{
    /**字典**/
    DICT_EXISTED(400, "字典已经存在"),
    ERROR_CREATE_DICT(500, "创建字典失败"),
    ERROR_WRAPPER_FIELD(500, "包装字典属性失败"),
    ERROR_CODE_EMPTY(500, "字典类型不能为空"),
    /**用户***/
    USER_NOT_EXISTED(400,"账号用户不存在"),
    USER_PHONE_DIFFER(400,"账号关联手机号不一致"),
    USER_PASSWORD_DIFFER(400,"账号关联原密码不一致"),
    ;

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    BizExceptionEnum(int code , String message){
        this.code = code;
        this.message = message;
    }
}
